package com.hu.pk.patroller;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author yellow doctor
 * @date 2022-07-20
 * @desc
 */
@SpringBootApplication
@MapperScan({"com.hu.pk.patroller.mapper","com.hs.pk.berth.mapper","com.ding.pda.mapper","com.hs.order.mapper,com.hs.car.mapper,com.hs.device.mapper"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.ding.pda")
public class PatrollerApplication {
    public static void main(String[] args) {
        SpringApplication.run(PatrollerApplication.class,args);
    }

    @Bean
    public MessageConverter messageConverter() {
        return new Jackson2JsonMessageConverter();
    }

}
